package follow.pratice.in2020.october.twentynine;


import java.util.*;

public class Case_1 {
    public static void show() {
        System.out.println("123");
    }


    public static void main(String[] args) {

        int[] myArray = {1, 2, 3};
        List myList = Arrays.asList(myArray);
        System.out.println(myList.size());//1
        System.out.println(myList.get(0));//数组地址值
        System.out.println(myList.get(1));//报错：ArrayIndexOutOfBoundsException
        int[] array = (int[]) myList.get(0);
        System.out.println(array[0]);//1

        List<String> list = new ArrayList<>();
    }
}
